package com.sf.osms.dep.processor.handler.dynamicexcjava;


public class DynaCompTest
{
		
	
    public static void main(String[] args) throws Exception {
    	for(int i=0;i<10;i++){
    		new Thread(new Runnable() {
				
				@Override
				public void run() {
					 	String fullName = "DynaClass";
				        StringBuilder src = new StringBuilder();
				        
				        src.append("public class DynaClass {\n");
				       
				        src.append("}\n");
				        
				        DynamicEngine de = DynamicEngine.getInstance();
				        Object instance  = null;
				        try {
				        	  instance =  de.javaCodeToObject(fullName,src.toString());
						} catch (Exception e) {
							e.printStackTrace();
						}
				      
				        System.out.println(instance);
				}
			}).start();
    	}
       
       
    }
}
